﻿using System;
using System.Collections.Generic;

namespace DigitClassification
{
    public class DigitData
    {
        public char[,] Attributes;
        public int Label;

        public DigitData(int label, char[,] attributes)
        {
            Label = label;
            Attributes = attributes;
        }

        public override string ToString()
        {
            string s = string.Empty;
            s += Label + Environment.NewLine;

            var dim = Math.Sqrt(Attributes.Length);
            for (int i = 0; i < dim; i++)
            {
                for (int j = 0; j < dim; j++)
                    s += Attributes[i, j];

                s += Environment.NewLine;
            }

            return s;
        }
    }
}